This widget displays a graph corresponding to the associated curve.
See attributes common to all curve widgets.
Name | Value Type | Default Value | Description | Comment | V. | Exp. |
---|---|---|---|---|---|---|
color |
current text color |
Color of the curve graph. |
|
1.1 |
No |
|
pen_style |
solid |
Style of the pen used to draw the graph. |
|
1.1 |
No |
|
graph_style |
curve |
Type of graph to display the curve. |
|
1.1 |
No |
|
anti_alias |
true |
use anti aliasing to draw the curve (smooth drawing). |
When anti alias is used, the pen_style attribute has no effect (only solid antialiased graph is implemented) |
1.2.3 |
1.3.5 |
|
sample_rate |
1 |
number of points of the curve drawn for each pixels. |
This value is used only for real number curves and when the x_positions_count attribute is not set. |
1.2.3 |
No |
Graph with default options and anti_alias deactivated:
<?xml version="1.0" encoding="utf-8" ?> <SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10"> <CURVE_GRAPH curve_id="dsp.output_curve3" width="150" height="80" anti_alias="false" color="#00ff00"/> </SKIN>
Changing the x scale:
<?xml version="1.0" encoding="utf-8" ?> <SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10"> <CURVE_GRAPH curve_id="dsp.output_curve3" x_response_curve="exp3" width="150" height="80" anti_alias="false" color="#00ff00"/> </SKIN>
We can change the style to 'bargraph':
<?xml version="1.0" encoding="utf-8" ?> <SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10"> <CURVE_GRAPH curve_id="dsp.output_curve3" x_response_curve="exp3" graph_style="bargraph" width="150" height="80" anti_alias="false" color="#00ff00" /> </SKIN>
And change the number of positions on the x scale:
<?xml version="1.0" encoding="utf-8" ?> <SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10"> <CURVE_GRAPH curve_id="dsp.output_curve3" x_response_curve="exp3" graph_style="bargraph" width="150" height="80" anti_alias="false" color="#00ff00" x_positions_count="21"/> </SKIN>